﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="StuOtherList.aspx.cs" Inherits="Sagacity.NC.Web.BasicSettings.Student.StuOtherList" %>

<%@ Register Src="~/Form/TabFormCommon.ascx" TagName="TabFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>学生信息列表</title>
    <link href="../../resources/css/examples.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        ///学校编号
        var selschoolId = 0;
        /*-----显示方法名称，设置时在TabFormCommon1中调用，指定GridPanel行单击详细信息列和双击时应该调用的方法-----*/
        var showFunctionName = 'showStudentDetailInfo()';

        /*-----TabFormCommon1中调用的方法-----*/
        function showStudentDetailInfo() {
            var xmlTabInfo = "<root><tab id='orderTab32' name='学生信息' url='StuZaiXiaoDetailInfo.aspx'></tab></root>";
            self.parent.addTabs1(self.parent.tabInfoTabs, xmlTabInfo, "", "ResourceId=" + document.getElementById("hidResourceId").value + "&SchoolId="+selschoolId+"&StudentId=" + Form$getKeyValue());
        }

        function refreshStudentInfos(schoolId, gradeId) {
            selschoolId = schoolId;
            if(schoolId == undefined)
                return;
            var filterstr="";
            if (gradeId != 0)
                filterstr += "Grade_ID$=$" + gradeId + ";INTTYPE$in$2,4;";
       
            Form$SetFilters(filterstr);
            Form$ReloadData();
        }
    </script>
    
    <script type="text/javascript" language="javascript">
        /* -----------新增，设置新增加数据的时候跳转页面到下一级页面，并且给出的数据位空。-------------*/
        var showFunctionAdd ='showStuFunctionAdd()';
        var showStuFunctionAdd = function() {
            var params = "";
            if(typeof(self.parent.getParamters) != undefined){
                var resourceId = document.getElementById("hidResourceId").value;
                var showStyle = 2;
             //   params = self.parent.getParamters();
                params += "&action=add&ResourceId=" + resourceId + "&showStyle=" + showStyle + "&controlType=1";
             }
             var xmlTabInfo = "<root><tab id='orderTab32' name='新增学生信息' url='StudentBaseInfo.aspx'></tab></root>";
             self.parent.addTabs1(self.parent.tabInfoTabs, xmlTabInfo, '', params);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidResourceId" runat="server" Value="169" />
    <div>
        <!--配置信息-->        
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
        <ext:ViewPort ID="viewport1" runat="server">
            <Body>
                <uc1:TabFormCommon ID="TabFormCommon1" PageSize="0"  SureExport="true" runat="server"  MenuId="1119" />
            </Body>
        </ext:ViewPort>
    </div>
    </form>
</body>
</html>